/*
 *
 *    Copyright (c) 2022 Project CHIP Authors
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

// THIS FILE IS GENERATED BY ZAP
// This file is generated from clusters-Attributes.h.zapt

#pragma once

#include <app/ConcreteAttributePath.h>
#include <app/data-model/DecodableList.h>
#include <app/data-model/List.h>
#include <app/data-model/Nullable.h>
#include <app/util/basic-types.h>
#include <lib/core/TLV.h>
#include <lib/support/BitMask.h>

#include <clusters/shared/Attributes.h>
#include <clusters/shared/Enums.h>
#include <clusters/shared/Structs.h>

#include <clusters/GeneralCommissioning/AttributeIds.h>
#include <clusters/GeneralCommissioning/ClusterId.h>
#include <clusters/GeneralCommissioning/Enums.h>
#include <clusters/GeneralCommissioning/Structs.h>

namespace chip
{
namespace app
{
	namespace Clusters
	{
		namespace GeneralCommissioning
		{
			namespace Attributes
			{

				namespace Breadcrumb
				{
					struct TypeInfo {
						using Type = uint64_t;
						using DecodableType = uint64_t;
						using DecodableArgType = uint64_t;

						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
						static constexpr AttributeId GetAttributeId()
						{
							return Attributes::Breadcrumb::Id;
						}
						static constexpr bool MustUseTimedWrite() { return false; }
					};
				} // namespace Breadcrumb
				namespace BasicCommissioningInfo
				{
					struct TypeInfo {
						using Type = chip::app::Clusters::GeneralCommissioning::Structs::
							BasicCommissioningInfo::Type;
						using DecodableType = chip::app::Clusters::GeneralCommissioning::
							Structs::BasicCommissioningInfo::DecodableType;
						using DecodableArgType =
							const chip::app::Clusters::GeneralCommissioning::Structs::
								BasicCommissioningInfo::DecodableType &;

						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
						static constexpr AttributeId GetAttributeId()
						{
							return Attributes::BasicCommissioningInfo::Id;
						}
						static constexpr bool MustUseTimedWrite() { return false; }
					};
				} // namespace BasicCommissioningInfo
				namespace RegulatoryConfig
				{
					struct TypeInfo {
						using Type = chip::app::Clusters::GeneralCommissioning::
							RegulatoryLocationTypeEnum;
						using DecodableType = chip::app::Clusters::GeneralCommissioning::
							RegulatoryLocationTypeEnum;
						using DecodableArgType = chip::app::Clusters::GeneralCommissioning::
							RegulatoryLocationTypeEnum;

						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
						static constexpr AttributeId GetAttributeId()
						{
							return Attributes::RegulatoryConfig::Id;
						}
						static constexpr bool MustUseTimedWrite() { return false; }
					};
				} // namespace RegulatoryConfig
				namespace LocationCapability
				{
					struct TypeInfo {
						using Type = chip::app::Clusters::GeneralCommissioning::
							RegulatoryLocationTypeEnum;
						using DecodableType = chip::app::Clusters::GeneralCommissioning::
							RegulatoryLocationTypeEnum;
						using DecodableArgType = chip::app::Clusters::GeneralCommissioning::
							RegulatoryLocationTypeEnum;

						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
						static constexpr AttributeId GetAttributeId()
						{
							return Attributes::LocationCapability::Id;
						}
						static constexpr bool MustUseTimedWrite() { return false; }
					};
				} // namespace LocationCapability
				namespace SupportsConcurrentConnection
				{
					struct TypeInfo {
						using Type = bool;
						using DecodableType = bool;
						using DecodableArgType = bool;

						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
						static constexpr AttributeId GetAttributeId()
						{
							return Attributes::SupportsConcurrentConnection::Id;
						}
						static constexpr bool MustUseTimedWrite() { return false; }
					};
				} // namespace SupportsConcurrentConnection
				namespace TCAcceptedVersion
				{
					struct TypeInfo {
						using Type = uint16_t;
						using DecodableType = uint16_t;
						using DecodableArgType = uint16_t;

						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
						static constexpr AttributeId GetAttributeId()
						{
							return Attributes::TCAcceptedVersion::Id;
						}
						static constexpr bool MustUseTimedWrite() { return false; }
					};
				} // namespace TCAcceptedVersion
				namespace TCMinRequiredVersion
				{
					struct TypeInfo {
						using Type = uint16_t;
						using DecodableType = uint16_t;
						using DecodableArgType = uint16_t;

						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
						static constexpr AttributeId GetAttributeId()
						{
							return Attributes::TCMinRequiredVersion::Id;
						}
						static constexpr bool MustUseTimedWrite() { return false; }
					};
				} // namespace TCMinRequiredVersion
				namespace TCAcknowledgements
				{
					struct TypeInfo {
						using Type = uint16_t;
						using DecodableType = uint16_t;
						using DecodableArgType = uint16_t;

						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
						static constexpr AttributeId GetAttributeId()
						{
							return Attributes::TCAcknowledgements::Id;
						}
						static constexpr bool MustUseTimedWrite() { return false; }
					};
				} // namespace TCAcknowledgements
				namespace TCAcknowledgementsRequired
				{
					struct TypeInfo {
						using Type = bool;
						using DecodableType = bool;
						using DecodableArgType = bool;

						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
						static constexpr AttributeId GetAttributeId()
						{
							return Attributes::TCAcknowledgementsRequired::Id;
						}
						static constexpr bool MustUseTimedWrite() { return false; }
					};
				} // namespace TCAcknowledgementsRequired
				namespace TCUpdateDeadline
				{
					struct TypeInfo {
						using Type = chip::app::DataModel::Nullable<uint32_t>;
						using DecodableType = chip::app::DataModel::Nullable<uint32_t>;
						using DecodableArgType =
							const chip::app::DataModel::Nullable<uint32_t> &;

						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
						static constexpr AttributeId GetAttributeId()
						{
							return Attributes::TCUpdateDeadline::Id;
						}
						static constexpr bool MustUseTimedWrite() { return false; }
					};
				} // namespace TCUpdateDeadline
				namespace RecoveryIdentifier
				{
					struct TypeInfo {
						using Type = chip::ByteSpan;
						using DecodableType = chip::ByteSpan;
						using DecodableArgType = chip::ByteSpan;

						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
						static constexpr AttributeId GetAttributeId()
						{
							return Attributes::RecoveryIdentifier::Id;
						}
						static constexpr bool MustUseTimedWrite() { return false; }
						static constexpr size_t MaxLength() { return 8; }
					};
				} // namespace RecoveryIdentifier
				namespace NetworkRecoveryReason
				{
					struct TypeInfo {
						using Type = chip::app::DataModel::Nullable<
							chip::app::Clusters::GeneralCommissioning::
								NetworkRecoveryReasonEnum>;
						using DecodableType = chip::app::DataModel::Nullable<
							chip::app::Clusters::GeneralCommissioning::
								NetworkRecoveryReasonEnum>;
						using DecodableArgType = const chip::app::DataModel::Nullable<
							chip::app::Clusters::GeneralCommissioning::
								NetworkRecoveryReasonEnum> &;

						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
						static constexpr AttributeId GetAttributeId()
						{
							return Attributes::NetworkRecoveryReason::Id;
						}
						static constexpr bool MustUseTimedWrite() { return false; }
					};
				} // namespace NetworkRecoveryReason
				namespace IsCommissioningWithoutPower
				{
					struct TypeInfo {
						using Type = bool;
						using DecodableType = bool;
						using DecodableArgType = bool;

						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
						static constexpr AttributeId GetAttributeId()
						{
							return Attributes::IsCommissioningWithoutPower::Id;
						}
						static constexpr bool MustUseTimedWrite() { return false; }
					};
				} // namespace IsCommissioningWithoutPower
				namespace GeneratedCommandList
				{
					struct TypeInfo
						: public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo {
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
					};
				} // namespace GeneratedCommandList
				namespace AcceptedCommandList
				{
					struct TypeInfo
						: public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo {
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
					};
				} // namespace AcceptedCommandList
				namespace AttributeList
				{
					struct TypeInfo
						: public Clusters::Globals::Attributes::AttributeList::TypeInfo {
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
					};
				} // namespace AttributeList
				namespace FeatureMap
				{
					struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo {
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
					};
				} // namespace FeatureMap
				namespace ClusterRevision
				{
					struct TypeInfo
						: public Clusters::Globals::Attributes::ClusterRevision::TypeInfo {
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}
					};
				} // namespace ClusterRevision

				struct TypeInfo {
					struct DecodableType {
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::GeneralCommissioning::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader,
								  const ConcreteAttributePath &path);

						Attributes::Breadcrumb::TypeInfo::DecodableType breadcrumb =
							static_cast<uint64_t>(0);
						Attributes::BasicCommissioningInfo::TypeInfo::DecodableType
							basicCommissioningInfo;
						Attributes::RegulatoryConfig::TypeInfo::DecodableType regulatoryConfig =
							static_cast<chip::app::Clusters::GeneralCommissioning::
									    RegulatoryLocationTypeEnum>(0);
						Attributes::LocationCapability::TypeInfo::DecodableType
							locationCapability =
								static_cast<chip::app::Clusters::GeneralCommissioning::
										    RegulatoryLocationTypeEnum>(0);
						Attributes::SupportsConcurrentConnection::TypeInfo::DecodableType
							supportsConcurrentConnection = static_cast<bool>(0);
						Attributes::TCAcceptedVersion::TypeInfo::DecodableType
							TCAcceptedVersion = static_cast<uint16_t>(0);
						Attributes::TCMinRequiredVersion::TypeInfo::DecodableType
							TCMinRequiredVersion = static_cast<uint16_t>(0);
						Attributes::TCAcknowledgements::TypeInfo::DecodableType
							TCAcknowledgements = static_cast<uint16_t>(0);
						Attributes::TCAcknowledgementsRequired::TypeInfo::DecodableType
							TCAcknowledgementsRequired = static_cast<bool>(0);
						Attributes::TCUpdateDeadline::TypeInfo::DecodableType TCUpdateDeadline;
						Attributes::RecoveryIdentifier::TypeInfo::DecodableType
							recoveryIdentifier;
						Attributes::NetworkRecoveryReason::TypeInfo::DecodableType
							networkRecoveryReason;
						Attributes::IsCommissioningWithoutPower::TypeInfo::DecodableType
							isCommissioningWithoutPower = static_cast<bool>(0);
						Attributes::GeneratedCommandList::TypeInfo::DecodableType
							generatedCommandList;
						Attributes::AcceptedCommandList::TypeInfo::DecodableType
							acceptedCommandList;
						Attributes::AttributeList::TypeInfo::DecodableType attributeList;
						Attributes::FeatureMap::TypeInfo::DecodableType featureMap =
							static_cast<uint32_t>(0);
						Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision =
							static_cast<uint16_t>(0);
					};
				};
			} // namespace Attributes
		} // namespace GeneralCommissioning
	} // namespace Clusters
} // namespace app
} // namespace chip
